package rubix.model;

public class User {

    private String username;
    private String password;
    private String name;
    private String department;

    public User(String username, String password, String name, String department) {
        this.username = username;
        this.password = password;
        this.name = name;
        this.department = department;
    }

    public String getUsername() {
        return username;
    }

    public String getPassword() {
        return password;
    }

    public String getName() {
        return name;
    }

    public String getDepartment() {
        return department;
    }

    public boolean authenticate(String password) {
        return password.equals(this.password);
    }     
    
    public boolean verifyDepartment(String department) {
        return department.equals(this.department);
    }

    public void setDepartment(String department) {
        this.department = department;
    }
	
    public String toString() {
        return "name=" + name + ",department=" + department;
    }
}